package es.abredatos.energyes

class Province implements Serializable {
	
	static final long serialVersionUID = 10245991124961L
	
	static belongsTo = [region:Region]
	
	String name
	String code
	
	String toString() {
		name
	}
	
	static constraints = {
		name(unique:true)
		name(code:true)
	}
}